﻿//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	MetaField.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using System;
using System.Diagnostics;
using Microsoft.SharePoint;

namespace Smart.Common
{
	/// <summary>
	/// Store metadata about Field
	/// </summary>
	[DebuggerDisplay("MetaField Name={Name} Title={Title}")]
	public class MetaField
	{
		/// <summary>
		/// Field ID
		/// </summary>
		public Guid ID { get; set; }

		/// <summary>
		/// Field name
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Field title
		/// </summary>
		public string Title { get; set; }

		/// <summary>
		/// Field type
		/// </summary>
		public SPFieldType Type { get; set; }

		/// <summary>
		/// Container list
		/// </summary>
		public MetaList List { get; set; }

		/// <summary>
		/// Store metadata about Field
		/// </summary>
		public MetaField(Guid id, string name, string title, SPFieldType type, MetaList list)
		{
			ID = id;
			Name = name;
			Title = title;
			Type = type;
			List = list;
		}
	}
}